<?php use_helper("Date") ?>

<?php if ( $news->count() ): ?>
    <p>&nbsp;</p>
    <?php foreach ( $news as $item ): ?>
        <p class="news_title"><?php echo link_to( $item->getNewsName(), "@onenews?news_id=".$item->getId() ) ?></p>
        <p class="news_date"><?php echo format_date( $item->getNewsDate() ) ?></p>
        <p class="news_text"><?php echo $item instanceof sfOutputEscaperObjectDecorator ? $item->unescape( $item->getNewsAnons() ) : $item->getNewsAnons() ?></p>
        <p>&nbsp;</p>
    <?php endforeach ?>
<?php endif ?>
